<template>
  <div class="container" v-if="show">
    <div class="loading"> </div> 
  </div>
</template>

<script>
export default {
    name:'loading',
    data() {
      return {
        show: false
      }
    }
};
</script>

<style>
.container {
  position: absolute;
  left: 50%;
  /* top: 50%; */
  bottom: 100px;
  transform: translate(-50%, -50%);
} 
.loading {
  width: 1rem;
  height: 1rem;
  border-radius: 100%;
  border: 5px #f2f2f2  solid;
  border-right-color: #333; 
  animation: loading 1s linear infinite;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
</style>